<template>
	<button @click="getlist">按键</button>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		onLoad() {

		},
		methods: {
			getlist(){
				uni.request({
				    url: 'http://localhost:7755/FeiYiLand/home/information/list', //仅为示例，并非真实接口地址。
				    data: {
				        text: 'uni.request'
				    },
				    header: {
				        'custom-header': 'hello' //自定义请求头信息
				    },
				    success: (res) => {
				        console.log(res.data);
				        this.text = 'request success';
				    }
				});
			}
            
		}
	}
</script>
<style>
</style>
